﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QUANLYVATTU
{
    class  HOADON
    {

        HOADONDAL dal = new HOADONDAL();
        public HOADON()
        {

        }
           
        public void LuuHoaDon(string sohd, string mahang, double soluong, double dongia, string diengiai)
        {
            double trigia = soluong * dongia;
            double khuyenmai = 0.0;
            if (trigia > 20000000)
                khuyenmai = (trigia * 5) / 100;
            else
                khuyenmai = 0.0;
            dal.ThemHoaDon(sohd, mahang, soluong, dongia, trigia, khuyenmai, diengiai);



        }
    }
}
